﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ClearHtml.aspx.cs" Inherits="KeleyiTestWeb.KText.ClearHtml" ValidateRequest="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>C#清除文本中的HTML标签的代码-柯乐义</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <asp:TextBox runat="server" ID="tbInput" TextMode="MultiLine" Rows="10" Columns="50" Text="&lt;a href=&quot;http://keleyi.com&quot;&gt;柯乐义&lt;/a&gt;" /><br />
    <asp:Button runat="server" ID="btnClear" Text="清除上面的html标签" 
            onclick="btnClear_Click" /><br />
    <asp:TextBox runat ="server" ID="tbOuput" TextMode="MultiLine"  Rows="10" Columns="50" />
    </div>
    </form>
    <div>本例子请参考：<a href="http://keleyi.com/a/bjac/4yiwpvt0.htm" target="_blank">http://keleyi.com/a/bjac/4yiwpvt0.htm</a> </div>
</body>
</html>